<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import * as UTIL from '@/utils/util'
export default {
  name: 'app',
  data () {
    return {
      isWechat: false,
      util: UTIL
    }
  },
  created () {
    if (navigator.userAgent.toLowerCase().indexOf('micromessenger') > -1 || typeof navigator.wxuserAgent !== 'undefined') {
      this.isWechat = true
    }
    console.log(this.isWechat)
  },
  methods: {
     // 时间转换
    dateFormat (t) {
      return UTIL.dateFormat(t)
    }
  }
}
</script>
<style src="./style/variable.less"></style>
